<?php

namespace Model\MessageBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Message
 *
 * @ORM\Table(name="Message")
 * @ORM\Entity(repositoryClass="Model\MessageBundle\Repository\MessageRepository")
 */
class Message
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=255)
     */
    private $title;

    /**
     * @var int
     *
     * @ORM\Column(name="category", type="integer")
     */
    private $category;

    /**
     * @var string
     *
     * @ORM\Column(name="content", type="text")
     */
    private $content;

    /**
     * @var string
     *
     * @ORM\Column(name="addTime", type="string", length=11)
     */
    private $addTime;

    /*
     * 筛选条件
     * isHot
     * isTop
     * isPic
     * isWebIndex
     * isAppIndex
     */

    /**
     * @var int
     *
     * @ORM\Column(name="isHot", type="integer")
     */
    private $isHot = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isTop", type="integer")
     */
    private $isTop = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isPic", type="integer")
     */
    private $isPic = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isWebIndex", type="integer")
     */
    private $isWebIndex = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isAppIndex", type="integer")
     */
    private $isAppIndex = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="fromWho", type="integer")
     */
    private $fromWho = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="toWho", type="integer")
     */
    private $toWho = 0;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return Message
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set MessageCategory
     *
     * @param integer $category
     *
     * @return Message
     */
    public function setCategory($category)
    {
        $this->category = $category;

        return $this;
    }

    /**
     * Get MessageCategory
     *
     * @return int
     */
    public function getCategory()
    {
        return $this->category;
    }

    /**
     * Set content
     *
     * @param string $content
     *
     * @return Message
     */
    public function setContent($content)
    {
        $this->content = $content;

        return $this;
    }

    /**
     * Get content
     *
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set addTime
     *
     * @param string $addTime
     *
     * @return Message
     */
    public function setAddTime($addTime)
    {
        $this->addTime = $addTime;

        return $this;
    }

    /**
     * Get addTime
     *
     * @return string
     */
    public function getAddTime()
    {
        return $this->addTime;
    }

    /**
     * Set isHot
     *
     * @param integer $isHot
     *
     * @return Message
     */
    public function setIsHot($isHot)
    {
        $this->isHot = $isHot;

        return $this;
    }

    /**
     * Get isHot
     *
     * @return integer
     */
    public function getIsHot()
    {
        return $this->isHot;
    }

    /**
     * Set isTop
     *
     * @param integer $isTop
     *
     * @return Message
     */
    public function setIsTop($isTop)
    {
        $this->isTop = $isTop;

        return $this;
    }

    /**
     * Get isTop
     *
     * @return integer
     */
    public function getIsTop()
    {
        return $this->isTop;
    }

    /**
     * Set isPic
     *
     * @param integer $isPic
     *
     * @return Message
     */
    public function setIsPic($isPic)
    {
        $this->isPic = $isPic;

        return $this;
    }

    /**
     * Get isPic
     *
     * @return integer
     */
    public function getIsPic()
    {
        return $this->isPic;
    }

    /**
     * Set isWebIndex
     *
     * @param integer $isWebIndex
     *
     * @return Message
     */
    public function setIsWebIndex($isWebIndex)
    {
        $this->isWebIndex = $isWebIndex;

        return $this;
    }

    /**
     * Get isWebIndex
     *
     * @return integer
     */
    public function getIsWebIndex()
    {
        return $this->isWebIndex;
    }

    /**
     * Set isAppIndex
     *
     * @param integer $isAppIndex
     *
     * @return Message
     */
    public function setIsAppIndex($isAppIndex)
    {
        $this->isAppIndex = $isAppIndex;

        return $this;
    }

    /**
     * Get isAppIndex
     *
     * @return integer
     */
    public function getIsAppIndex()
    {
        return $this->isAppIndex;
    }

    /**
     * Set fromWho
     *
     * @param integer $fromWho
     *
     * @return Message
     */
    public function setFromWho($fromWho)
    {
        $this->fromWho = $fromWho;

        return $this;
    }

    /**
     * Get fromWho
     *
     * @return integer
     */
    public function getFromWho()
    {
        return $this->fromWho;
    }

    /**
     * Set toWho
     *
     * @param integer $toWho
     *
     * @return Message
     */
    public function setToWho($toWho)
    {
        $this->toWho = $toWho;

        return $this;
    }

    /**
     * Get toWho
     *
     * @return integer
     */
    public function getToWho()
    {
        return $this->toWho;
    }
}
